<script>
    // 父类
    class Person {
        // 构造器
        constructor(name, age) {  //隐式调用
            this.name = name;
            this.age = age;
        }
        
        
        // 添加公有
        say() {
            console.log(`${this.name}哈喽~~`);
        }

        hello() {
            console.log("hello~~~");
        }
    }


    class Student extends Person {
        xuehao = "123456";
    }


    let stu1 = new Student();
    console.log(stu1);

</script>